;;; GNU Guix --- Functional package management for GNU
;;;
;;; Copyright © 2022 jgart <jgart@dismail.de>
;;;
;;; This file is not part of GNU Guix.
;;;
;;; GNU Guix is free software; you can redistribute it and/or modify it
;;; under the terms of the GNU General Public License as published by
;;; the Free Software Foundation; either version 3 of the License, or (at
;;; your option) any later version.
;;;
;;; GNU Guix is distributed in the hope that it will be useful, but
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;;; GNU General Public License for more details.
;;;
;;; You should have received a copy of the GNU General Public License
;;; along with GNU Guix.  If not, see <http://www.gnu.org/licenses/>.

(define-module (guixrus packages javascript pyright)
  #:use-module ((guix licenses) #:prefix license:)
  #:use-module (gnu packages)
  #:use-module (gnu packages python-xyz)
  #:use-module (guix download)
  #:use-module (guix packages)
  #:use-module (guix build-system python))

(define-public python-pyright
  (package
    (name "python-pyright")
    (version "1.1.247")
    (source
      (origin
        (method url-fetch)
        (uri (pypi-uri "pyright" version))
        (sha256
          (base32 "1vlcl1avz1flk25ja0hjmry0s61pz9g93h1mf29qmd3xqj4ljgin"))))
    (build-system python-build-system)
    (arguments
      (list #:tests? #f))
    (propagated-inputs (list python-nodeenv python-typing-extensions))
    (native-inputs (list python-twine))
    (home-page "https://github.com/RobertCraigie/pyright-python")
    (synopsis "Static type checker for Python")
    (description "Command line wrapper for pyright")
    (license license:expat)))

(define-public python-nodeenv
  (package
    (name "python-nodeenv")
    (version "1.6.0")
    (source
      (origin
        (method url-fetch)
        (uri (pypi-uri "nodeenv" version))
        (sha256
          (base32 "0ascg98p2r7ay2n09gjd8q5d1z9znrwskyagg952mfli0bwkzw9y"))))
    (build-system python-build-system)
    (home-page "https://github.com/ekalinin/nodeenv")
    (synopsis "Node.js virtual environment builder")
    (description "Node.js virtual environment builder")
    (license license:bsd-3)))

